package com.example.love.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


@Controller
public class FTLImdexController {
    @RequestMapping("/ftlIndex")
    public String ftlIndex(Map<String,Object> map){

        map.put("name", "于圣军");
        map.put("age", "12");
        map.put("sex", "男");
        return  "ftlIndex";
    }
    @ResponseBody
    @RequestMapping("/ftlIndexs")
    public String ftlIndexs(String name){

        return  "ftlIndex";
    }
}
